<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>服务器状态</title>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/jquery-easyui-1.3.5/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/jquery-easyui-1.3.5/themes/icon.css">
<script type="text/javascript" src="${pageContext.request.contextPath}/static/jquery-easyui-1.3.5/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/jquery-easyui-1.3.5/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/jquery-easyui-1.3.5/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript">
function formatDatebox(value) {
	var datetimeType = "";
    var date =new Date(value);
    datetimeType = date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate()
    +" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds()+" "+date.getMilliseconds();
    return datetimeType;
}
/*
function formatServerId(value) {
	if(value==1){
		return "广深港空口服务器";
	}else if (value == 2){
		return "广深空口服务器";
	} else {
		return value;
	}
}*/

</script>
</head>
<body style="margin: 1px">
<table id="dg" title="服务器状态" class="easyui-datagrid"
   fitColumns="true" pagination="true" rownumbers="true"  pageSize="10" pageList="[10,20,30,40,50]"
   url="${pageContext.request.contextPath}/serverState/list.do" fit="true" toolbar="#tb" singleSelect="true">
   <thead>
   	<tr>
   		<th field="cb" checkbox="true" align="center"></th>
   		<th field="serverName" width="80" align="center">服务器名称</th>
   		<th field="cpuUsageRate" width="80" align="center">最近CPU使用率(%)</th>
   		<th field="memoryUsageRate" width="50" align="center">最近内存使用率(%)</th>
   		<th field="harddiskUsageRate" width="50" align="center">最近硬盘使用率(%)</th>
   		<th field="createTime" width="100" align="center" formatter="formatDatebox">时间</th>
   	</tr>
   </thead>
 </table>
	
</body>
</html>